package com.zhou.service;

import com.zhou.dao.ClassMessageDAO;
import com.zhou.entity.ClassMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("classMessageService")
public class ClassMessageServiceImpl implements ClassMessageService {

    @Autowired
    private ClassMessageDAO classMessageDAO;

    @Override
    public void addClassMessage(List<ClassMessage> classMessages) {
        classMessageDAO.addClassMessage(classMessages);
    }

    @Override
    public List<String> findByMessageID(Integer MessageID) {
        return classMessageDAO.findByMessageID(MessageID);
    }

    @Override
    public void addClassNotice(List<ClassMessage> classMessages) {
        classMessageDAO.addClassNotice(classMessages);
    }

    @Override
    public List<String> findNoticeClass(Integer MessageID) {
        return classMessageDAO.findNoticeClass(MessageID);
    }
}
